import request from '@/utils/request'
export function getpossiblemembers(data) {
  return request({
    url: '/mapi/customer/getsomepossiblemembers',
    method: 'get',
    params:data
  })
}

export function getmypossiblemembers(data) {
  return request({
    url: '/mapi/customer/getmypossiblemembers',
    method: 'get',
    params:data
  })
}

export function addpossiblemember(data) {
  return request({
    url: '/mapi/customer/addpossiblemember',
    method: 'post',
    data
  })
}

export function getmembers(data) {
  return request({
    url: '/mapi/customer/getmembers',
    method: 'get',
    params:data
  })
}

export function stopmember(data) {
  return request({
    url: '/mapi/customer/stopmember',
    method: 'get',
    params:data
  })
}


export function unlockmember(data) {
  return request({
    url: '/mapi/customer/deletemember',
    method: 'get',
    params:data
  })
}
export function lockmember(data) {
  return request({
    url: '/mapi/customer/lockpossiblemembers',
    method: 'get',
    params:data
  })
}
export function delpossiblemember(data) {
  return request({
    url: '/mapi/customer/delpossiblemember',
    method: 'get',
    params:data
  })
}
export function addmember(data) {
  return request({
    url: '/mapi/customer/addmember',
    method: 'post',
    data
  })
}

export function getmember(data) {
  return request({
    url: '/mapi/customer/getmember',
    method: 'get',
    params:data
  })
}
export function getpossiblemember(data) {
  return request({
    url: '/mapi/customer/getpossiblemember',
    method: 'get',
    params:data
  })
}
export function updatepossiblemember(data) {
  return request({
    url: '/mapi/customer/updatepossiblemember',
    method: 'post',
    data
  })
}

export function getcustomers(data) {
  return request({
    url: '/mapi/customer/getcustomers',
    method: 'get',
    params:data
  })
}
export function getorders(data) {
  return request({
    url: '/mapi/customer/getorders',
    method: 'get',
    params:data
  })
}

export function getpolicysbycustomerid(data) {
  return request({
    url: '/mapi/customer/getpolicysbycustomerid',
    method: 'get',
    params:data
  })
}


export function getpolicysbycustomeridofjjr(data) {
  return request({
    url: '/mapi/customer/getpolicysbycustomeridofjjr',
    method: 'get',
    params:data
  })
}











export function getmeetings(data) {
  return request({
    url: '/mapi/customer/getmeetings',
    method: 'get',
    params:data
  })
}

export function addmeeting(data) {
  return request({
    url: '/mapi/customer/addmeeting',
    method: 'post',
    data
  })
}

export function getpolicys(data) {
  return request({
    url: '/mapi/user/getorderchild',
    method: 'get',
    params:data
  })
}


export function getrecords(data) {
  return request({
    url: '/mapi/user/getrecords',
    method: 'get',
    params: data
  })
}


export function getmembersofpolicy(data) {
  return request({
    url: '/mapi/customer/getmembersbypolicyid',
    method: 'get',
    params: data
  })
}

export function getmembersoforder(data) {
  return request({
    url: '/mapi/user/getmemberbypagesize',
    method: 'get',
    params: data
  })
}






export function payorder(data) {
  return request({
    url: '/mapi/order/pay',
    method: 'post',
    params: data
  })
}
export function updatememberofpolicy(data) {
  return request({
    url: '/mapi/policy/update',
    method: 'post',
    data
  })
}

export function getpricelist(data) {
  return request({
    url: '/mapi/user/getpricelist',
    method: 'post',
    data
  })
}
export function weixinshare(data) {
  return request({
    url: '/api/share',
    method: 'get',
    params: data
  })
}

export function balance(data) {
  return request({
    url: '/mapi/user/balance',
    method: 'get',
    params: data
  })
}

export function gettrans(data) {
  return request({
    url: '/mapi/user/gettrans',
    method: 'get',
    params: data
  })
}
 

export function getuserinfo(data) {
  return request({
    url: '/mapi/customer/getuserinfo',
    method: 'get',
    params: data
  })
}


export function saveuserinfo(data) {
  return request({
    url: '/mapi/customer/saveuserinfo',
    method: 'post',
     data
  })
}


export function savefapiaoinfo(data) {
  return request({
    url: '/mapi/customer/savefapiaoinfo',
    method: 'post',
     data
  })
}

export function getfapiaoinfo(data) {
  return request({
    url: '/mapi/customer/getfapiaoinfo',
    method: 'get',
     params:data
  })
}

export function postmodifytag(data) {
  return request({
    url: '/mapi/customer/postmodifytag',
    method: 'get',
     params:data
  })
}
export function payordercom(data) {
  return request({
    url: '/mapi/order/combine',
    method: 'get',
     params:data
  })
}
